package corp.sunny.frameworks.exception;

import java.io.Serializable;

/**
 * @File:SystemException.java
 * @Date:Jun 16, 2011
 * @Author:Subhash Bavi
 * 
 * @Description: Base System Exception
 * @Copyright Sunny Corporation - 2011
 */
public class SystemException extends Exception implements Serializable {

	private static final long serialVersionUID = 7054748056246430293L;

	private String errorCode;
	private String errorDesc;

	public SystemException(String errorCode, String errorDesc) {
		super(errorDesc);
		this.errorCode = errorCode;
		this.errorDesc = errorDesc;
	}

	public String getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}

	public String getErrorDesc() {
		return errorDesc;
	}

	public void setErrorDesc(String errorDesc) {
		this.errorDesc = errorDesc;
	}
}
